package com.lw.order.client;

import com.lw.commonutil.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("service-ucenter")
@Component
public interface UcenterFeignClient {
    //rpc根据用户id获取用户信息
    @PostMapping("/api/ucenter/member/inner/userInfo/{id}")
    public UcenterMemberVo profile(@PathVariable("id") String id);
}
